package com.iOS.service;

import com.iOS.dto.PushInfoExecution;
import com.iOS.entity.PushInfo;
import com.sun.org.apache.bcel.internal.generic.PUSH;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface IPushInfoService {
    /**
     * @Author:ZhaoRuHao
     * @Description:增加一条推送
     * @Date:12:30 2018/10/8
     */
    PushInfoExecution Add(PushInfo pushInfo);

    /**
     * @Author:ZhaoRuHao
     * @Description:删除一条推送
     * @Date:12:30 2018/10/8
     */
    void Delete(int id);

    /**
     * @Author:ZhaoRuHao
     * @Description:查询所有推送
     * @Date:12:31 2018/10/8
     */
    List<PushInfo> getPushList();

    /**
     * @Author:ZhaoRuHao
     * @Description:通过id查询推送
     * @Date:12:31 2018/10/8
     */
    PushInfo getById(int id);
}
